home *** CD-ROM | disk | FTP | other *** search
- # GrabVar.sh
- # © LFSoft 1995
- #
- # This script for CSH 5.20+ grab variables on tops of env: tree.
- #
- # LFSystemBinder must run with its default Arexx port "LFSystemBinder.rdv"
- #
- # Note: This file is quite obsolete (as LFSystemBinder can grab all variables
- # since V2.0). It must be considered only as an example of using CSH with
- # LFSystemBinder
-
- cd env:
- # Read variables but *.prefs
- rxsend -l LFSystemBinder.rdv show var
- foreach -v var ( ~(*.prefs*) ) \
- "if -n -d $var; rxsend -l LFSystemBinder.rdv grab var $var; endif"
- # Grab variables ...
-
- cd ~; # Return to the previous CD
-